#pragma once
#include "vcruntime_exception.h"

//
// throw std::exception("string", int) doesn't do what you may expect.
// using Win32Exception("string", DWORD) copies the int into the exception
//
class Win32Exception :
	public std::exception
{
public:
	Win32Exception(char const* const szMessage, DWORD dwLastError);
	virtual ~Win32Exception();
private:
	DWORD m_dwLastError;
};

